CInstrumentResponse.cs
Code Type: C# Class
Uses Classes: CDataParameterList, CDataSet, }, List<object>, DataView, {
Uses PL/SQL Procedures: PCK_INSTRUMENT_RESPONSES.InsertInstrumentResponse, PCK_INSTRUMENT_RESPONSES.GetInstrumentResponsesRS, PCK_INSTRUMENT_RESPONSES.GetIntakeLogicVarRS, PCK_INSTRUMENT_RESPONSES.GetScoreLogicRS, PCK_INSTRUMENT_RESPONSES.GetMergedInstrumentResponsesRS, PCK_INSTRUMENT_RESPONSES.GetPatientInstrumentsRS, PCK_INSTRUMENT_RESPONSES.RemovePrevResponses, PCK_INSTRUMENT_RESPONSES.RemoveAllResponses, PCK_INSTRUMENT_RESPONSES.RemoveResponse, PCK_INSTRUMENT_RESPONSES.InsertInstrumentScore, PCK_INSTRUMENT_RESPONSES.DeleteInstrumentScore, PCK_INSTRUMENT_RESPONSES.GetInstrumentScoresRS

Lines of Code: 707

public class CInstrumentResponse

	Summary description for CInstrumentResponse 

public CInstrumentResponse(BaseMaster BaseMstr)

	Constructor takes a BaseMaster 

public bool InsertInstrumentResponse(string strPatientID,
                                        long lIntakeID,
                                        long lMID,
                                        long lTID,
                                        long lQID,
                                        long lRID,
                                        double dblScoreValue,
                                        string strResponseValue) 

	  Write instrument responses in the TBICDS central database 

public DataSet GetInstrumentResponsesDS(long lMID, long lIntakeID)

	  Get the instrument's responses dataset 

public string GetInstrumentResponsesJson(long lMID, long lIntakeID)

	  Get a JSON string of the instrument responses 

public DataSet GetIntakeLogicVarDS(string strPatientID, long lMID)

	Get a dataset of resolved logigal variables to be used in the scoring 

protected DataSet GetScoreLogicDS(long lMID)

	Get the score logic to be used to calculate the instrument score and interpretation 

public string GetScoreLogic(long lMID)

	Return a string with the score equation for the selected instrument 

public DataSet ConvertResponsesToDataSet(List<IntakeResponse> lsResponses)

	Create a responses dataset to pass to the COM componet for scoring 

public DataSet GetInstrumentResponsesDS(string strPatientID, long lMID, long lIntakeID)

	  Gets and returns a dataset of responses for the completed instrument 

public DataSet GetMergedInstrumentResponsesDS(string strPatientID, long lMID, long lIntakeID)

	 

public DataSet GetPatientInstrumentsDS(string strPatientID)

	 

public object GetInstrumentResponsesJSON(string strPatientID, long lMID, long lIntakeID)

	  Returns a JSON object with the responses of the completed instrument 

string GetLabelPos2Response(long lTID, long lQID, DataSet ds, out long lCount)

	label_pos of 2 = horizontal layout of all responses for this qid groups the responses together and returns the number of responses grouped so we can can skip them in the loop 

public bool RemovePrevResponses(string strPatientID,
                                        long lMID,
                                        long lIntakeID,
                                        string strResponses)

	Remove responses from previous time submitted not present in a new submittal of the instrument 

public bool RemoveAllResponses(string strPatientID,
                                   long lMID,
                                   long lIntakeID)

	Remove ALL responses of a specific Intake. 

public bool RemoveResponse(string strPatientID,
                                    long lMID,
                                    long lIntakeID,
                                    long lRID)

	Removes a specific RID from the intrument intake 

public bool InsertInstrumentScore(string strPatientID,
                                    long lMID,
                                    long lIntakeID,
                                    long lSeriesID,
                                    long lScore,
                                    long lInterpretID)

	Inserts Instrument score series 

public bool InsertInstrumentScore(string strPatientID,
                                long lMID,
                                long lIntakeID,
                                long lSeriesID,
                                double dScore,
                                string strInterpret,
                                string strDescription,
                                long lSeverity)

	// Inserts Instrument score series 

public bool InsertInstrumentScore(string strPatientID,
                                long lMID,
                                long lIntakeID,
                                long lSeriesID,
                                long lScore,
                                string strInterpret,
                                string strDescription,
                                long lSeverity)

	// Inserts Instrument score series 

public bool DeleteInstrumentScore(string strPatientID,
                                      long lMID,
                                      long lIntakeID)

	Deletes Instrument Scores 

public DataSet GetInstrumentScoresDS(string strPatientID, long lMID, long lIntakeID, ScoreFilter nFilter)

	Get a DataSet with the instrument scores and apply a filter 

public DataSet GetInstrumentScoresDS(string strPatientID, long lMID, long lIntakeID)

	 

public DataSet GetInstrumentScoresDS(string strPatientID, long lMID)

	 

public object GetInstrumentScoreObj(string strPatientID, long lMID, long lIntakeID, ScoreFilter nFilter)

	Get an Object for the scores 

public class IntakeResponse {

	Helper class for modeling the responses collection 

public class ModelIntake

	 

	

